#define _CRT_SECURE_NO_WARNINGS 1

#include"SqString.h"

void StrAssign(SqString* s, char arr[])
{
	int i = 0;
	for (i = 0; arr[i] != '\0'; i++)
	{
		s->data[i] = arr[i];
	}
	s->length = i;
}

void DispStr(SqString s)
{
	if (s.length > 0)
	{
		int i = 0;
		for (i = 0; i < s.length; i++)
		{
			printf("%c ", s.data[i]);
		}
		printf("\n");
	}
}

